package com.MoveEat.items;

import android.graphics.drawable.BitmapDrawable;

import com.MoveEat.Utils.Consts;
import com.MoveEat.Utils.Utils;

public class RestData
{
	private String	mName;
	private String	mAddress;
	private String	mPhone;
	private String	mPhone2;
	private long	mId;
	private String	mIconUrl;

	public RestData(long id, String name, String address, String phone, String phone2, String iconUrl, BitmapDrawable iconDraw)
	{
		this.setId(id);
		this.setName(name);
		this.setAddress(address);
		if (phone != null) this.setPhone(phone);
		if (phone2 != null) this.setPhone2(phone2);
		Utils.log(2, "iconUrl is:" + iconUrl);
		mIconUrl = iconUrl;

	}

	public String getName()
	{
		return mName;
	}

	public void setName(String mName)
	{
		this.mName = mName;
	}

	public String getAddress()
	{
		return mAddress;
	}

	public void setAddress(String mAddress)
	{
		this.mAddress = mAddress;
	}

	public String getPhone()
	{
		return mPhone;
	}

	public void setPhone(String mPhone)
	{
		this.mPhone = mPhone;
	}

	public String getPhone2()
	{
		return mPhone2;
	}

	public void setPhone2(String mPhone2)
	{
		this.mPhone2 = mPhone2;
	}

	public long getId()
	{
		return mId;
	}

	public void setId(long mId)
	{
		this.mId = mId;
	}

	public String getIconUrl()
	{
		return Consts.IMAGE_PATH + mIconUrl;
	}

}